package dk.pun.aot.client.widget;

import com.google.gwt.user.client.ui.RadioButton;

import dk.pun.aot.shared.character.CharacterId;

public class CharacterIdRadioButton extends RadioButton {

	private CharacterId characterId;

	public CharacterIdRadioButton(CharacterId characterId) {
		super("character");
		this.characterId = characterId;
		if (characterId != null) {
			setText(characterId.getName());
		}
	}
	
	public CharacterId getCharacterId() {
		return this.characterId;
	}
}
